#include <iostream>

using namespace std;

class Draw{
private:
    int height;
    int i;
    int j;
public:
    Draw(int h){
        height = h;
        }
    void drawTriangle(){
    for(i=1;i<=height;i++){
        for(j=1;j<=i;j++){
            cout<<"*";
        }
        cout<<""<<endl;
    }
    }
    void drawRectangle(){
    for(i=1;i<=height;i++){
        for(j=1;j<=3;j++){
            cout<<"*";
        }
        cout<<""<<endl;
    }
    }
    void drawSquare(){
    for(i=1;i<=height;i++){
        for(j=1;j<=height;j++){
            cout<<"*";
        }
        cout<<""<<endl;
    }
    }
    void drawParallelogram(){
    for(i=1;i<=height;i++){
        for(j=2;j<=i;j++){
            cout<<" ";
        }
        for(j=i+1;j<=i+4;j++){
            cout<<"*";
            }
        cout<<""<<endl;
    }
    }
};
int main()
{
    Draw drawobj(5);
    drawobj.drawTriangle();
    drawobj.drawRectangle();
    drawobj.drawSquare();
    drawobj.drawParallelogram();
    return 0;
}
